Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed After and Instead of trigger issues on table #2529

Conversation

deepakshi-mittal
Copy link
Contributor

@deepakshi-mittal deepakshi-mittal commented Apr 24, 2024

  1. If an After trigger exists on table, it is skipped after instead of trigger is fired on same table in Babelfish.

  2. Query execution and After trigger is skipped on table in babelfish when it has a disabled Instead of Trigger

Task: BABEL-4672 and BABEL-4801

Description

This PR also contain test case fix for inserted and deleted transition table
PR: #2530
Previous PRs:

Pg16 Engine PR: babelfish-for-postgresql/postgresql_modified_for_babelfish#320
Pg Extensions PR: #2390

Pg15 Engine PR: babelfish-for-postgresql/postgresql_modified_for_babelfish#328
Pg 15 Extensions PR: #2425

Issues Resolved

[List any issues this PR will resolve]

Test Scenarios Covered

Test Scenarios Covered
Instead of IUD TRIGGER with After IUD TRIGGER on table

Check List

-[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

1. If an After trigger exists on table, it is skipped  after instead of
 trigger is fired on same table in Babelfish.

2. Query execution and After trigger is skipped on table in babelfish
 when it has a disabled Instead of Trigger

Task: BABEL-4672 and BABEL-4801

Signed-off-by: Deepakshi Mittal <[email protected]>
Signed-off-by: Deepakshi Mittal <[email protected]>
Signed-off-by: Deepakshi Mittal <[email protected]>
@forestkeeper forestkeeper merged commit 81c59da into babelfish-for-postgresql:BABEL_2_X_DEV Apr 25, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants